<!DOCTYPE html >
<html>
<head>
    <link rel="stylesheet" href="demos.css" type="text/css" media="screen" />
    
    <script type="text/javascript" src="../libraries/RGraph.common.core.js" ></script>
    <script type="text/javascript" src="../libraries/RGraph.common.effects.js" ></script>
    <script type="text/javascript" src="../libraries/RGraph.common.key.js" ></script>
    <script type="text/javascript" src="../libraries/RGraph.bar.js" ></script>
    <!--[if lt IE 9]><script src="../excanvas/excanvas.js"></script><![endif]-->
    
    <title>A grouped Bar chart with background image</title>

    <meta name="description" content="A grouped Bar chart with background image" />
</head>
<body>

    <h1>A grouped bar chart with background image</h1>

    <canvas id="cvs" width="600" height="250">[No canvas support]</canvas>

    <script>
        window.onload = function ()
        {
            var bar = new RGraph.Bar('cvs', [[5,6],[7, 7],[6, 9],[8, 12],[12, 13],[15, 18],[45, 42],[55, 53],[36, 37],[25, 28],[20, 24],[15, 18]]);
            bar.Set('background.image', '../images/bg.png');
            bar.Set('background.grid', false);
            bar.Set('labels', ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']);
            bar.Set('key', ['Sunshine in 2000', 'Sunshine in 2005']);
            bar.Set('key.position.gutter.boxed', false);
            bar.Set('key.position', 'gutter');
            bar.Set('key.background', 'rgb(255,255,255)');
            bar.Set('colors', ['yellow', 'red']);
            bar.Set('shadow', true);
            bar.Set('shadow.blur', 15);
            bar.Set('shadow.offsetx', 0);
            bar.Set('shadow.offsety', 0);
            bar.Set('shadow.color', '#aaa');
            bar.Set('strokestyle', 'rgba(0,0,0,0)');
            bar.Set('gutter.left', 55);
            bar.Set('gutter.right', 5);
            bar.Set('hmargin.grouped', 1);
            RGraph.Effects.Fade.In(bar, {'duration': 500, 'frames': 10});
        }
    </script>

    <p>
        <a href="./">&laquo; Back</a>
    </p>

</body>
</html>